import java.io.IOException;
import java.util.List;

public class App {
    public static void main(String[] args) throws IOException {
        // System.out.println("Please enter the absolute/relative path of the file:");
        // Scanner sc = new Scanner(System.in);
        // String path = sc.nextLine();
        // InputSystem.printTokenInfo(InputSystem.readFile(path));


        // 正确测试
        List<Token> tokenList = InputSystem.readFile("test.c");


        // int a =;
        // List<Token> tokenList = InputSystem.readFile("test2.c");
        // ifs(d){
        // List<Token> tokenList = InputSystem.readFile("test3.c");
        // int a() = 2;
        // List<Token> tokenList = InputSystem.readFile("test4.c");

        new SyntaxParser().parser(tokenList);

        System.out.println("OK.");

    }
}
